﻿create proc [dbo].danhmucHoaDon_Xoa
@so_hdon varchar(255)
as
if not exists(select * from DM_HoaDon where so_hdon=@so_hdon   )
begin
select ErrCode=0
end
else
begin
delete from DM_HoaDon where so_hdon=@so_hdon
select ErrCode=1
end
